package indi.kider.server.employee.service;

import indi.kider.common.model.employee.LeaveLog;
import pers.vankid.common.utils.page.PageRequest;
import pers.vankid.common.utils.page.PageResponse;

import java.util.List;

/**
 * Created by shixj on 2018/4/26.
 */
public interface LeaveLogService {
    /**
     * 根据id获取
     * @param id
     * @return
     */
    LeaveLog getLeaveLogById(Long id);

    /**
     * 获取分页查询
     * @param request
     * @return
     */
    PageResponse<List<LeaveLog>> getLeaveLogPages(PageRequest<LeaveLog> request);

    /**
     * 不分页查询
     * @param leaveLog
     * @return
     */
    List<LeaveLog>getLeaveLogs(LeaveLog leaveLog);

    /**
     * 新增
     * @param leaveLog
     * @return
     */
    LeaveLog add(LeaveLog leaveLog);

    /**
     * 更新
     * @param leaveLog
     * @return
     */
    LeaveLog modify(LeaveLog leaveLog);
    /**
     * 删除
     */
    void delById(Long id);
}
